<?php
	$un = "root";
	$pass = "";
	$db = "cp3003";
	
	mysql_connect('localhost',$un,$pass);
	@mysql_select_db($db) or die( "Unable to select database");
	
	$title = $_REQUEST['id'];
	$query = "SELECT * FROM orders WHERE number = '$title'";
	$row = mysql_query($query);
	$res = mysql_fetch_assoc($row);
	if($res == null) {
		echo "The number id is invalid!";
	} else {
		//header
	}
?>